<!DOCTYPE html>
<html lang='en'>

<head>
    <meta charset='UTF-8'>
    <meta name='viewport' content='width=device-width, initial-scale=1.0'>
    <title>Document</title>
    <script type='text/javascript' src='js/vue.js'></script>
</head>

<body>
    <div id='app'>
        {{msg}}===
        <p>11111</p>
        <com1>
            <span slot='aa'>aaaa</span>
            <span slot='bb'>bbbb</span>
            <span>ccc</span>
        </com1>
    </div>
    <script type='text/javascript'>
        var obj = {
            template: `<div>
            111111
            <header>
                <slot name='aa'></slot>
                <slot name='aa'></slot>
            </header>
            <main>
                <slot name='bb'></slot>
            </main>
            <footer>
                <slot></slot>
            </footer>
        </div>`
        }
        var vm = new Vue({
            el: '#app',
            data: {
                msg: 'Hello Vue'
            },
            components: {
                com1: obj
            }
        });
    </script>
</body>

</html>